package edu.hgnc.converterSPI;

import org.springframework.context.annotation.Bean;
import org.springframework.context.support.ConversionServiceFactoryBean;
import org.springframework.stereotype.Component;

import java.util.HashSet;


@Component
public class ConversionService extends ConversionServiceFactoryBean {


	@Bean
	MyCustomConverter myCustomConverter(){
		MyCustomConverter converter = new MyCustomConverter();
		HashSet<Object> objects = new HashSet<>();
		objects.add(converter);
		this.setConverters(objects);
		return converter;
	}
}
